const router=require('./index');


let student_Index_fn=(ctx,next)=>{

    ctx.body=[
        {
            id:1,
            stuName:'张三',
            age:18,
            classMates:'20级软件2班'
        },
        {
            id:2,
            stuName:'李四',
            age:18,
            classMates:'20级软件1班'

        },
        {
            id:3,
            stuName:'王五',
            age:18,
            classMates:'20级软件3班'

        },
    ]

 }



let delete_fn=(ctx,next)=>{
        console.log(ctx.request.body.id);
}


 module.exports={
    "get /student":student_Index_fn,
    "delete /student/:id":delete_fn
 }